]> dgit.raspbian.org Git - gnome-shell.git/commit
panel: center date entry with workarea
authorDidier Roche <didrocks@ubuntu.com>
Tue, 9 Jan 2018 08:39:06 +0000 (09:39 +0100)
committerDidier Roche <didrocks@ubuntu.com>
Tue, 6 Feb 2018 10:19:58 +0000 (11:19 +0100)
commitcd0af33947f8eb73a163ecef975728988ab51549
tree86d85eef143c38e3e69c38a1d812892bb9921d67
parent0b51ead00433d449d32afbbd2d2798f779a52c9c
panel: center date entry with workarea

Align and center the date entry with the workspace's workarea.
This way, maximized applications have their window aligned with the top date
entry.
This doesn't change anything for desktops with no docks or when left/right
workareas are aligned with the monitor.

The offset is leftOffset - rightOffset:
(workArea.x - monitor.x) - (monitor.width - ((workArea.x - monitor.x) +
                                              workArea.width))

https://bugzilla.gnome.org/show_bug.cgi?id=792354
js/ui/panel.js